package cool.mtc.base.plugin.generator.code.model.template.bg;

import cool.mtc.core.util.StringUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

/**
 * @author 明河
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BgModelQueryTemplateParam extends BgModelTemplateParam {

    public BgModelQueryTemplateParam(BgModelTemplateParam param) {
        BeanUtils.copyProperties(param, this);
    }

    @Override
    public String getTemplateRelativePath() {
        return "bg/model_query.ftl";
    }

    @Override
    public String getPackage() {
        return super.getPackage() + StringUtil.POINT + "query";
    }

    @Override
    public String getClassName() {
        return this.getClassPrefix() + "Query";
    }
}
